﻿@model CodeCamp.Models.Shared.ErrorViewModel
@{
    @* ViewBag.RegistrationUrl set in code - SetSharedViewBagProperties *@
    ViewBag.Title = "";
    if ((@Model != null) && (@Model.EventDisplayName != null))
    {
        ViewBag.Title = @Html.Encode(@Model.EventDisplayName + " | Authorization Error ");
    }
    else
    {
        ViewBag.Title = "Code Camp | Authorization Error ";
    }
}

<h2>Authorization Error</h2>

<p>
@if (User.Identity.IsAuthenticated)
{
    <text>To submit or change a session, first please </text>
    @Html.ActionLink( "create a presenter profile", "Add", "Presenters")
}
else
{
    <text>To submit or change a session, first please </text>
    @Html.ActionLink("sign in", "SignIn", "Account")<text> or </text>
    @Html.ActionLink("register", "Create", "Account")<text> with this Code Camp website.</text>
}
</p>

@section sidebar {
    @Html.Partial("SidebarCommonPartial")
}
